package l_network;
// ==============================================
// url 클래스를 사용하여 텍스트 문서 읽기
// make : pwg
// date : 2003
// note :
// ==============================================

import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.net.*;
import java.io.*;

import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

public class UrlEx2 extends JFrame implements ActionListener{

	myWindowAdapter myW;

	URL            url;
	private JTextField textDomain;
	private JButton btnRun;
	private JScrollPane scrollPane;
	private JTextArea textResult;
	public UrlEx2()	{
		myW = new myWindowAdapter();
		addWindowListener(myW);

		getContentPane().setLayout(null);
		
		textDomain = new JTextField();
		textDomain.setBounds(12, 10, 301, 21);
		getContentPane().add(textDomain);
		textDomain.setColumns(10);
		
		btnRun = new JButton("RUN");
		btnRun.setBounds(325, 9, 97, 23);
		getContentPane().add(btnRun);
		
		scrollPane = new JScrollPane();
		scrollPane.setBounds(12, 42, 410, 210);
		getContentPane().add(scrollPane);
		
		textResult = new JTextArea();
		scrollPane.setViewportView(textResult);


	}

	public void actionPerformed(ActionEvent e){

	}

	public static void main(String args[]){
		UrlEx2 f=new UrlEx2();
		f.setSize(450, 310);
		f.setVisible(true);
	}

	class myWindowAdapter extends WindowAdapter
	{
		public void windowClosing(WindowEvent winEvent){
			System.exit(0);
		}
	};


}
